Global Index
HTML5 JS API Index > ECMAScript Tutorials & Specs

Function

See 15.3.1 and 15.3.2.

Properties
int
length
The value of the length property is an integer that indicates the “typical” number of arguments expected by the function. However, the language permits the function to be invoked with some other number of arguments. The behaviour of a function when invoked on a number of arguments other than the number specified by its length property depends on the function.
Constructor
Function(string paramsAndBody...)
Operations
any
apply(any thisArg, Array argArray)
any
bind(any thisArg, any args...)
any
call(any thisArg, any args...)
string
toString()
An implementation-dependent representation of the function is returned. This representation has the syntax of a FunctionDeclaration. Note in particular that the use and placement of white space, line terminators, and semicolons within the representation String is implementation-dependent.
Referenced by
Arraysort(...)
WindowTimerssetTimeout(...)